package com.sqsf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class UserController {
    @Autowired
    UserService userService;
    @RequestMapping("/all")
    public String all(HttpServletRequest request)
    {
        request.setAttribute("data",userService.findAllUser());
        return "ok";
    }
}
